package com.game.jumper.game;

import java.math.BigDecimal;

public class Util
{
	public static int double2Int(double value)
	{
		return new BigDecimal(value).setScale(0, BigDecimal.ROUND_HALF_UP).intValue();
	}

	public static float double2Float(double value)
	{
		return new BigDecimal(value).setScale(4, BigDecimal.ROUND_HALF_UP).floatValue();
	}
}
